
Pod::Spec.new do |s|
    # ------------------ 组件基本信息段---------------------
    s.name             = 'SweetWeexKit'
    s.version          = '0.1.3'
    s.summary          = 'A short description of SweetWeexKit.'
    s.description      = <<-DESC
                            sweet框架库体系weex基础库，提供weex运行容器、通讯、插件管理、等
                        DESC
    s.ios.deployment_target = '9.0'

    # 1. Dynamic 动态库、2. Static  静态库、3. Library 三方库封装，如HPR，OpenSSL
    library_type       = "Dynamic"
    #s.static_framework = true
    
    s.author           = { '朱帅帅' => 'shuaishuai.zhu@geely.com' }
#    s.homepage         = 'http://git.evun.cn/ADMP-repository/Sweet-iOS-SweetWeexKit'
    s.homepage         = 'https://gitlab.geely.com/p-admp/ios-common-kit/ios-sweetweexkit'

    s.license          = { :type => 'MIT', :file => 'LICENSE' }

#    if ENV['mode'].to_s.include? "SweetWeexKit_DIS"
        #使用zip成果物模式
        puts "SweetWeexKit成果物模式集成".blue
        s.source           = { :http => 'https://geely-admp-oss.oss-cn-hangzhou.aliyuncs.com/sweet-app-release/ios/SweetWeexKit.framework-0.1.3.zip' }
        s.ios.vendored_framework   = 'SweetWeexKit.framework'
        s.source_files = 'SweetWeexKit.framework/**/*.h'
        s.public_header_files = 'SweetWeexKit.framework/**/*.h'
        s.ios.resource = [
                'SweetWeexKit.framework/Versions/A/Resources/*.{png,xib,storyboard,bundle,xcassets}'
        ]
#    else
#        #目前默认源码集成
#        puts "SweetWeexKit源码模式集成".yellow
#        s.source           = { :git => 'https://gitlab.geely.com/p-admp/ios-common-kit/ios-sweetweexkit.git', :tag => s.version.to_s }
#
#
#            # ------------------ 组件资源---------------------
#        s.source_files = 'SweetWeexKit/Classes/**/*.{h,m}'
#        s.public_header_files  = 'SweetWeexKit/Classes/**/*.h'
#
#        s.ios.resource = [
#                'SweetWeexKit/Assets/files/**/*.{png,xib,storyboard}',
#                'SweetWeexKit/Assets/bundles/*.{bundle,xcassets}',
#                'SweetWeexKit/Classes/**/*.{png,xib,storyboard}'
#        ]
#        
#    end
    s.ios.frameworks = 'UIKit','Foundation'
    # ------------------ 组件依赖---------------------

    # Weex核心库
    s.dependency 'WeexSDK'
    #s.dependency 'WeexPluginLoader'
    # s.dependency 'ATSDK-Weex'
    
    # sweet框架库
    s.dependency 'SweetCoreKit'
    
    # 底层工具库
    s.dependency 'HybridImplementKit'
    
    # 第三方
    s.dependency 'SDWebImage'
    s.dependency 'SocketRocket'
    #  s.dependency 'MJExtension'
    s.dependency 'BGFMDB'
    s.dependency 'SSZipArchive'
    
    s.dependency 'SSZipArchive'

    #目前指定版本
    s.dependency 'AFNetworking', '~> 4.0.0'
   
   #------------------ 组件info配置 --------------------------
   s.pod_target_xcconfig  = {
       'FRAMEWORK_SEARCH_PATHS'        => '$(inherited) ${PODS_ROOT}/**',
       'LIBRARY_SEARCH_PATHS'          => '$(inherited) ${PODS_ROOT}/**',
       'ENABLE_BITCODE'                => 'NO',
       'OTHER_LDFLAGS'                 => '$(inherited) -ObjC',
       'STRINGS_FILE_OUTPUT_ENCODING'  => 'UTF-8',
       'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES'
   }

   
   
end
